<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .box{
            position: relative;
            width: 200px;
            height: 300px;
        }
        .card{
            position: absolute;
            width: 200px;
            height: 300px;
            transform-origin: center bottom;
            transition: transform 1s;
        }
        .card:nth-child(2n){
            /* j */
            background-image: url(https://oss.9ihub.com/test/20231017210305.png);
            background-size: 200px 300px;
        }
        .card:nth-child(2n-1){
            /* Q */
            background-image: url(https://oss.9ihub.com/test/20231017210408.png);
            background-size: 200px 300px;
        }
       
        .box:hover .q01{
            transform: rotate(-60deg);
            transition: transform 1s;
        }
        .box:hover .j01{
            transform: rotate(-50deg);
            transition: transform 1s;
        }
        .box:hover .q02{
            transform: rotate(-40deg);
            transition: transform 1s;
        }
        .box:hover .j02{
            transform: rotate(-30deg);
            transition: transform 1s;
        }
        .box:hover .q03{
            transform: rotate(-20deg);
            transition: transform 1s;
        }
        .box:hover .j03{
            transform: rotate(-10deg);
            transition: transform 1s;
        }
        .box:hover .q04{
            
            transition: transform 1s;
        }
        .box:hover .j04{
            transform: rotate(10deg);
            transition: transform 1s;
        }
        .box:hover .q05{
            transform: rotate(20deg);
            transition: transform 1s;
        }
        .box:hover .j05{
            transform: rotate(30deg);
            transition: transform 1s;
        }
        .box:hover .q06{
            transform: rotate(40deg);
            transition: transform 1s;
        }
        .box:hover .j06{
            transform: rotate(50deg);
            transition: transform 1s;
        }

        .box:hover .q07{
            transform: rotate(60deg);
            transition: transform 1s;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="card q01"></div>
        <div class="card j01"></div>
        <div class="card q02"></div>
        <div class="card j02"></div>
        <div class="card q03"></div>
        <div class="card j03"></div>

        <div class="card q04"></div>

        <div class="card j04"></div>
        <div class="card q05"></div>
        <div class="card j05"></div>
        <div class="card q06"></div>
        <div class="card j06"></div>
        <div class="card q07"></div>
    </div>
</body>

</html>